home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / June 96 / Re Bug in ODFContainer < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.9 KB  |  [TEXT/ttxt]

  1. Subject:     Re: Bug in ODFContainer
  2. Sent:        6/26/96 6:25 PM
  3. Received:    6/26/96 6:31 PM
  4. From:        Henri Lamiraux, lamiraux@apple.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. Yes, you are right. We also found this bug a couple weeks ago.
  9.  
  10.  
  11.  
  12. >Subject:  Bug in ODFContainer                                   Time:  
  13. >5:05 PM
  14. >There is bug in ODFContainer that causes the selection to be drawn wrong.  
  15. >When ODFContainer is the root part and its window is deactivated, it 
  16. >correctly hides the selection handles.  However, if it gets a draw event 
  17. >while it is in the background (e.g. if it is hidden by a Finder window and 
  18. >that window is closed), it will draw the selection handles even though the 
  19. >window is not active.  That wouldn't be so bad, except that when its 
  20. >window is activated again, the selection draws backwards -- i.e. handles 
  21. >are drawn when the embedded part is not selected and not drawn when it is 
  22. >selected.  It gets out of sync because CContainerView::Draw does not check 
  23. >to see if the window is active before it draws the selection handles.  The 
  24. >following change to CContainerView::Draw appears to fix the problem:
  25. >
  26. >change this:
  27. >    if (GetFrame(ev)->HasSelectionFocus(ev) && 
  28. >odFacet->GetCanvas(ev)->IsDynamic(ev))    
  29. >    {    
  30. >        fOutlinerFrame->GetSelection(ev)->RenderSelectionHandles(ev, vc);
  31. >to this:
  32. >     FW_CFrame *frame = GetFrame(ev);
  33. >    if (frame->HasSelectionFocus(ev) && frame->GetWindow(ev)->IsActive(ev) && 
  34. >odFacet->GetCanvas(ev)->IsDynamic(ev))    
  35. >    {    
  36. >        fOutlinerFrame->GetSelection(ev)->RenderSelectionHandles(ev, vc);
  37. >    }
  38. >
  39. >
  40. >Rob Cope
  41. >Eclipse Services
  42. >
  43.  
  44.  
  45. ........................................................................
  46.  Henri Lamiraux                                      lamiraux@apple.com
  47.  Apple Computer, Inc.                 OpenDoc(tm) Development Framework
  48. ........................................................................
  49.  
  50.